home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagg_m.zip
/
MISC.SWG
/
0042_Convert STRING to INTEGER.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-26
|
587b
|
19 lines
{*****************************************************************************
* Function ...... STOI()
* Purpose ....... To convert a string to an integer
* Parameters .... cNum String to convert to integer format
* Returns ....... cNum as a numeric integer
* Notes ......... None
* Author ........ Martin Richardson
* Date .......... May 13, 1992
*****************************************************************************}
FUNCTION STOI( cNum: STRING ): LONGINT;
VAR
c: INTEGER;
i: LONGINT;
BEGIN
VAL( cNum, i, c );
STOI := i;
END;